﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;


namespace UI.Lib
{
    [Serializable]
    public class LocalFile
    {
        private string name = "";
        private string lastver = "";
        private int size = 0;
        private string lastwrtime = "";

        [XmlAttribute("name")]
        public string Name { get { return name; } set { name = value; } }
        [XmlAttribute("lastver")]
        public string LastVer { get { return lastver; } set { lastver = value; } }
        [XmlAttribute("size")]
        public int Size { get { return size; } set { size = value; } }
        [XmlAttribute("lastwrtime")]
        public string Lastwrtime { get { return lastwrtime; } set { lastwrtime = value; } }

        public LocalFile(string name, string ver, int size, string uptime)
        {
            this.name = name;
            this.lastver = ver;
            this.size = size;
            this.lastwrtime = uptime;
        }

        public LocalFile()
        {
        }
    }

}
